namespace Ray.Web.Controllers
{
    using System;

    using Castle.MonoRail.Framework;
    using Castle.MonoRail.Framework.Filters;


    [Layout("default")]
    [Resource("textres", "Ray.Web.Resources.Language")]
    [LocalizationFilter(RequestStore.Cookie, "locale")]
    public class LanguageController : SmartDispatcherController
    {
        
        public void Index()
        {
           
        }
        public void SetLanguage(String langCode)
        {
            Response.CreateCookie("locale", langCode);

            RedirectToAction("index");
        }
    }
}
